//---------------------------------------------------------------------------

#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.Menus.hpp>
#include <Vcl.ToolWin.hpp>
#include <Vcl.ActnList.hpp>
#include <Vcl.CategoryButtons.hpp>
#include <Vcl.ActnMan.hpp>
#include <Vcl.PlatformDefaultStyleActnCtrls.hpp>
#include <Vcl.StdActns.hpp>

#include "DataBase.h"

//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published:	// IDE-managed Components
    TListView *lvBookmarks;
    TTreeView *tvCategories;
	TMainMenu *menuMain;
	TMenuItem *mniFile;
    TMenuItem *mniNBackup;
    TMenuItem *mniImport;
	TMenuItem *mniExit;
    TMenuItem *mniHelp;
	TActionList *ActionList1;
    TAction *actBackup;
    TAction *actImportFromIE;
	TAction *actExit;
    TMenuItem *mniAbout;
    TMenuItem *mniExport;
    TMenuItem *mniRecover;
    TAction *actRecover;
    TAction *actExport;
    TMenuItem *mniImportFromIE;
    TMenuItem *mniEdit;
    TMenuItem *mniDelete;
    TAction *actDelete;

	void __fastcall actExitExecute(TObject *Sender);
	void __fastcall actImportFromIEExecute(TObject *Sender);
    void __fastcall actDeleteExecute(TObject *Sender);
    
private:	// User declarations
	void  Init();
    void ShowBookmarks();
    void  lvBookmarksAdjustWidth();

private:

public:		// User declarations
	__fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *mainForm;
//---------------------------------------------------------------------------
#endif
